
length = int(input('>>>'))

for row in range(length):
    if row == 0 or row == length-1:
        print('-'*length)
    else:
        print('-'+' '*(length-2)+'-')